package com.meituan.catering.management.shop.biz.service.impl;

import com.meituan.catering.management.shop.biz.model.ShopBO;
import com.meituan.catering.management.shop.biz.model.converter.ShopBOConverter;
import com.meituan.catering.management.shop.biz.service.ShopBizBusinessNoService;
import com.meituan.catering.management.shop.dao.mapper.ShopMapper;
import com.meituan.catering.management.shop.dao.model.ShopDO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author:ale
 * @Date 2022/4/23 16:32
 * @Version 1.0
 */
@Service
public class ShopBizBusinessNoServiceImpl implements ShopBizBusinessNoService {

    @Resource
    private ShopMapper shopMapper;
    @Override
    public ShopBO findByBusinessNo(String businessNo) {
        ShopDO shopDO = shopMapper.findByBusinessNo(businessNo);
        return ShopBOConverter.fromDO(shopDO);
    }
}
